<?php

namespace Platform\Models\Scenario;

use Platform\Models\BaseModel;

class Scenario extends BaseModel {

    const TABLE_NAME = 'scenario';

    public function initialize() {
        parent::initialize();
        $this->setSource(self::TABLE_NAME);
    }

    private $id;
    private $title;
    private $img;
    private $type;
    private $createTime;
    private $updateTime;
    private $createUser;
    private $updateUser;
    private $status;
    private $isDel;

    public function getId() {
        return $this->id;
    }

    public function getTitle() {
        return $this->title;
    }

    public function getImg() {
        return $this->img;
    }

    public function getType() {
        return $this->type;
    }

    public function getCreateTime() {
        return $this->createTime;
    }

    public function getUpdateTime() {
        return $this->updateTime;
    }

    public function getCreateUser() {
        return $this->createUser;
    }

    public function getUpdateUser() {
        return $this->updateUser;
    }

    public function getStatus() {
        return $this->status;
    }

    public function getIsDel() {
        return $this->isDel;
    }

    public function setId($id) {
        $this->id = $id;
    }

    public function setTitle($title) {
        $this->title = $title;
    }

    public function setImg($img) {
        $this->img = $img;
    }

    public function setType($type) {
        $this->type = $type;
    }

    public function setCreateTime($createTime) {
        $this->createTime = $createTime;
    }

    public function setUpdateTime($updateTime) {
        $this->updateTime = $updateTime;
    }

    public function setCreateUser($createUser) {
        $this->createUser = $createUser;
    }

    public function setUpdateUser($updateUser) {
        $this->updateUser = $updateUser;
    }

    public function setStatus($status) {
        $this->status = $status;
    }

    public function setIsDel($isDel) {
        $this->isDel = $isDel;
    }

    public function columnMap() {
        //列名 =》 属性名
        return [
            "id" => "id",
            "title" => "title",
            "img" => "img",
            "type" => "type",
            'create_time' => 'createTime',
            'update_time' => 'updateTime',
            'create_user' => 'createUser',
            'update_user' => 'updateUser',
            "status" => "status",
            'is_del' => 'isDel',
        ];
    }

}
